/*
 * Shangar
 */
package sg.edu.nus.iss.phoenix.presenterproducer.dao;

import java.sql.SQLException;
import java.util.List;

import sg.edu.nus.iss.phoenix.authenticate.entity.Role;
import sg.edu.nus.iss.phoenix.authenticate.entity.User;

public interface ProducerDAO{
	/**
	 * searchAllproducer method is called to retrieve the whole list of producers
	 * in the system 
	 * @param valueObject : role that need to be search
	 * @return List of users
	 * @throws SQLException : this will throw SQL Exception in case of error
	 */
	public abstract List<User> searchAllProducer(Role valueObject) throws SQLException;
	
	/**
	 * searchPresenter method is called to retrieve the producer based on the userid 
	 * @param valueObject : user object that holds the values
	 * @param valueObject2 : role object that is passed to get the producer
	 * @return
	 * @throws SQLException : this will throw SQL Exception in case of error
	 */
	public abstract List<User> searchProducer(User valueObject,Role valueObject2) throws SQLException;
}